package health.lm.com.mine.present;


import health.lm.com.component_base.base.mvp.contract.XPresent;
import health.lm.com.mine.activity.SettingMailActivity;
import health.lm.com.mine.activity.SettingNameActivity;
import health.lm.com.mine.model.MineModel;
import health.lm.com.network.callback.SimpleCallBack;

/**
 * 修改企业邮箱
 */

public class SettingMailPresenter extends XPresent<SettingMailActivity> {

    public void setName(String name) {
        MineModel.getInstance().changeSetting(2,name, new SimpleCallBack<Object>() {
            @Override
            public void onSuccess(Object o) {
                if (hasV()){
                    getV().setNameSuccess(name);
                }
            }

        });

    }
}
